<script lang="ts" setup>
import PageHeader from '../../../../components/page-header.vue';
import CommonPage from '../../components/carbon-reduction/index.vue';

interface Props {
  title: string;
  menuId: string;
  count?: number;
}

const { title, menuId } = defineProps<Props>();

const tabMap = reactive([
  { name: '合计', code: '4' },
  { name: '清洁能源', code: '1' },
  { name: '节能环保', code: '2' },
  { name: '碳减排技术', code: '3' }
]);
</script>

<template>
  <page-header class="mt-18px mb-15px" :count="count" :title="title" :menuId="menuId" is-small />
  <div class="container">
    <template v-for="item in tabMap" :key="item.code">
      <common-page :title="item.name" :code="item.code" />
    </template>
  </div>
</template>
<style lang="scss" scoped>
.tabs {
  position: relative;
  &-right {
    height: 42px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
  }
}
</style>
